# -*- coding: utf-8 -*-
import os
import csv
import PathConfig
import re


def main():
	

	csvFile = open(PathConfig.localstring_csv_filepath, 'r')
	
	csv_list = []

	csv_reader = csv.DictReader(csvFile)
	rowCount = len(csv_reader.fieldnames)
			
	for row in csv_reader:
		csv_list.append(row)	

	csvFile.close()




	for i in range(rowCount):
		if i == 0:
			continue

		print '\n\n\n\n\n\n\n\n  ================================  %s \n\n\n\n\n\n' % str(i)
		
		for row in csv_list:
			
			index = str(i)
			key_s = row['localstringKey']
			value_s = row[index]

			oc_s = '"%s" = "%s";' % (key_s,value_s)
			print oc_s	
	
	print('Finish done')

if __name__ == '__main__':
	main()





